package com.bill.app.serveur.bean.dao.interfaces;

import java.util.List;

import com.bill.security.token.UsernamePasswordToken;

import com.bill.app.serveur.bean.Abonnes;
import com.bill.app.serveur.bean.Amis;

public interface MainDaoInterface {
	 
	public  Abonnes loadAbonneByLogin(String login) ;
	public  List<Abonnes>  AbonneAll( )  ;
	public  List<Amis> loadAmis(String login); 
	public  List<Amis> AllAmis();

		 
	public  boolean hasFriend(String ab,String friendlogin);
		 
	public  boolean hasFriend(Abonnes ab,String friendlogin) ;
	public  Amis  loadAmis(String login,String loginami);

		 
	 public boolean isSamePassword(Abonnes ab,String pass);
	 public boolean isSamePassword(String ab,String pass);
	 public Abonnes doAuthentification(String login,String password);
	 
	 public Abonnes doAuthentification(UsernamePasswordToken token);
	public boolean save (Amis obj);
	public boolean save (Abonnes obj);
	 
	public  void updateLoginInAmiTable(String login,String newLogin);
	public boolean update (Amis obj);
			 
	public boolean update (Abonnes obj);
	public boolean delete (Amis obj);
		 
	public boolean delete (Abonnes obj);
	 
	public void deleteFriendFor (Abonnes ab);
	public void deleteFriendFor (UsernamePasswordToken token);
	public void deleteFriendFor (String login);
			 

			 
		 
	public boolean delete (String login);
	public boolean persist (Object obj);

			 
		 

}
